<script type="text/javascript" src="${base}/scripts/jhgl/jkddetail.js"></script>
<div id="jkd_detail_tabs" class="easyui-tabs" detail="true" data-options="fit:true,border:false">
    <input id="jkd_id" type="hidden" value="${(jkd.id)!}"/>

    <div title="借款单主信息">
        <table style="width: 100%" class="tb tab-t t-bor">
            <col width="90px"/>
            <col width=""/>
            <col width="90px"/>
            <col width=""/>
            <col width="90px"/>
            <col width=""/>
            <tr>
                <th>付款日期：</th>
                <td><#if jkd.zfsj??>${jkd.zfsj?string('yyyy-MM-dd')!}</#if></td>
                <th>借款单号：</th>
                <td>${jkd.jkdbm!}</td>
                <th>供应商：</th>
                <td><#if jkd.gys??>${jkd.gys.qc!}</#if></td>
            </tr>
            <tr>
                <th>资金计划单号：</th>
                <td><#if jkd.zgzjjh??>${jkd.zgzjjh.jhbh}<#elseif jkd.tpzjjh??>${jkd.tpzjjh.jhbh}</#if></td>
                <th>合同单号：</th>
                <td><#if jkd.cght??>${jkd.cght.htbm!}</#if></td>
                <th>借款金额(元)：</th>
                <td>${jkd.zfje!}</td>
            </tr>
            <tr>
                <th>已付款(元)：</th>
                <td>${jkd.yfje!}</td>
                <th>借款公司：</th>
                <td><#if jkd.jkgs??>
                       ${jkd.jkgs.jc!''}
                    </#if></td>
                <th>申报公司：</th>
                <td><#if jkd.sbgs??>
                    ${jkd.sbgs.qc!''}
                </#if></td>
            </tr>
            <tr>
                <th>借款人：</th>
                <td><#if jkd.createUser??>
                        ${jkd.createUser.xm!''}
                    </#if></td>
                <th>申请日期：</th>
                <td><#if jkd.dateCreated??>
                        ${jkd.dateCreated?string('yyyy-MM-dd')}
                    </#if></td>
                <th>申报部门：</th>
                <td>${(jkd.sbbm.jc)!}</td>
            </tr>
            <tr>
                <th>备注：</th>
                <td colspan="5">${(jkd.bz)!}</td>
            </tr>
            <tr>
                <th>制单人：</th>
                <td>${(jkd.createUser.xm)!}</td>
                <th>制单时间：</th>
                <td colspan="3"><#if jkd.dateCreated??>
                    ${jkd.dateCreated?datetime!}
                    </#if></td>
            </tr>
        </table>
    </div>
    <div title="付款单明细">
        <table id="fksh_fkshmx_table" class="easyui-datagrid"
               url="${base}/jhgl/jkd/jkdsearchfkshmxList?jkdId=${(jkd.id)!}"
               rownumbers="true" fit="true" fitColumns="true">
            <thead>
            <tr>
                <th data-options="field:'fksh_bm',width:100,align: 'center'" rowspan="2">收付款单号</th>
                <th data-options="field:'jkd_zfsj',width:100,align: 'center'" rowspan="2">支付日期</th>
                <th data-options="field:'jkd_gys_qc',width:100,align: 'center'" rowspan="2">收款单位</th>
                <th data-options="field:'jkd_zfkx',width:100,align: 'center'" rowspan="2">支付款项</th>
                <th data-options="field:'jkd_zffs_z',width:100,align: 'center'" rowspan="2">支付方式</th>
                <th data-options="field:'jkd_zfje',width:100,align:'right',formatter:formatJeForHtml2" rowspan="2">申请金额(元)</th>
                <th data-options="field:'fkrq',width:100,align: 'center'" rowspan="2">付款日期</th>
                <th data-options="field:'jkd_yfje',width:100,formatter:formatJeForHtml2,align:'right'" rowspan="2">已付金额(元)</th>
                <th data-options="field:'bcfkmx',width:100,formatter:formatJeForHtml2,align:'right'" rowspan="2">本次付款(元)</th>
            </tr>
            </thead>
        </table>
    </div>
    <div title="借款单打印">
        <div id="jkddetail-toolbar">
            <div class="PTools">
                <ul class="niu">
                    <li><span class="xuan">选择打印机：</span>
                        <select class="ze" name="" style="">
                            <option>——默认——</option>
                        </select>
                    </li>
                    <li><a class="she" href="javascript:void(0);" onclick="jkd_detail_checkIsInstall()">检查插件</a></li>
                    <li><a class="watch" href="javascript:void(0);" onclick="jkd_detail_printPreview()">打印</a></li>
                </ul>
            </div>
            <div id="jkddydetail_id">
                <object id="CGD_LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
                    <embed id="CGD_LODOP_EM" type="application/x-print-lodop" width=0 height=0
                           pluginspage="install_lodop32.exe"></embed>
                </object>
                <div id="jkddetail_print_id" class="textcon">
                    <table class="tb" style="width: 100%;font-size:13px;">
                        <colgroup>
                            <col width="10%"/>
                            <col width=""/>
                            <col width="20%"/>
                            <col width=""/>
                            <col width="12%"/>
                            <col width=""/>
                        </colgroup>
                        <tbody>
                        <tr>
                        <#if jkd.sbgs.id!=1>
                            <td colspan="6" style="text-align: center;font-size: 18px">
                                淮矿现代物流有限责任公司${(jkd.sbgs.jc)!}</td>
                        <#else>
                            <td colspan="6" style="text-align: center;font-size: 18px">
                                淮矿现代物流有限责任公司${(jkd.sbbm.jc)!}</td>
                        </#if>
                        </tr>
                        <tr>
                            <th></th>
                            <td></td>
                            <td colspan="2" style="text-align: center;font-size: 18px">借款单</td>
                            <th>借款单号:</th>
                            <td><input class="input-tian" readonly="readonly"
                                       value="${(jkd.jkdbm)!}"/></td>
                        </tr>
                        <tr>
                            <th rowspan="3">付款方向:</th>
                            <td rowspan="3"><input class="input-tian" readonly="readonly"
                                                   value="${(jkd.gys.qc)!}"/></td>
                            <td colspan="2" style="text-align: center;">${jkd.dateCreated}</td>
                            <th>付款方式:</th>
                            <td><input class="input-tian" readonly="readonly"
                                       value="${jkd.zffs.z}"/></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div id="jkddetail_jkd_id" class="textcon"></div>
                <div id="jkddy_print_end" class="textcon">
                    <table class="tb" style="width: 100%;font-size:13px;">
                        <colgroup>
                            <col width="15%;"/>
                            <col width="10%"/>
                            <col width="10%;"/>
                            <col width="10%"/>
                            <col width="10%;"/>
                            <col width="10%"/>
                            <#--<col width="10%;"/>-->
                            <#--<col width="10%"/>-->
                        </colgroup>
                        <tbody>
                        <tr>
                            <th style="font-size: 12px;">借款单位负责人:</th>
                            <td>
                                <input class="input-tian" readonly="readonly"
                                       value="<#if jkd?? && jkd.spr??>${(jkd.spr.xm)!''}</#if>"/>

                            </td>
                            <th style="font-size: 12px;">财务负责人:</th>
                            <td>
                                <input class="input-tian" readonly="readonly"
                                       value=""/>
                            </td>
                            <th style="font-size: 12px;">借款人:</th>
                            <td>
                                <input class="input-tian" readonly="readonly"
                                       value="<#if jkd??>${(jkd.createUser.xm)!''}</#if>"/>
                            </td>
                            <#--<th style="font-size: 12px;">领收人:</th>-->
                            <#--<td>-->
                                <#--<input class="input-tian" readonly="readonly"-->
                                       <#--value=""/>-->
                            <#--</td>-->
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

